
public class Opgave_6 {
	public static void main (String[] args){
	
		int tsek = 238577;
		int sek;
		
		//Minutter
		int min;int varmin = 60;
		//Timer
		int timer;int vartimer = varmin*60 ;
		//dage
		int Dage;int vardage = vartimer*24;

		Dage = tsek/vardage;
		tsek = tsek % vardage;
		timer = tsek/vartimer;
		tsek = tsek % vartimer;
		min = tsek/varmin;
		tsek = tsek % varmin;	

		System.out.println("Dage " +Dage+ ", Timer " +timer+ ", Min " +min+ ", Sek " +tsek);
		
	}		
}
